#pragma once
//#include "TimeTable.h"

class CurrentTimes
{
    friend class TimeTable;
protected:
    UINT m_initday;
    FILETIME m_lastDate;
    ULARGE_INTEGER m_start;
    UINT m_days[7];
    UINT m_week;
public:
    CurrentTimes(void);
    ~CurrentTimes(void);
    int ReadCurrent(const BYTE* current);
    int SaveCurrent(BYTE* current);

    UINT CurrentWeekTime(void) { return m_week; }
    UINT CurrentDayTime(int day) { return m_days[day]; }

    void UpdateTimes(SYSTEMTIME& st, int interval);
    void InitDate(SYSTEMTIME& st);
};
